
<%@ page import="duylinh.NguyenCong" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'nguyenCong.label', default: 'NguyenCong')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-nguyenCong" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-nguyenCong" class="content scaffold-list" role="main">
			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>
					
						<g:sortableColumn property="donvi" title="${message(code: 'nguyenCong.donvi.label', default: 'Donvi')}" />
					
						<g:sortableColumn property="ghiChu" title="${message(code: 'nguyenCong.ghiChu.label', default: 'Ghi Chu')}" />
					
						<g:sortableColumn property="khuanGa" title="${message(code: 'nguyenCong.khuanGa.label', default: 'Khuan Ga')}" />
					
						<g:sortableColumn property="may" title="${message(code: 'nguyenCong.may.label', default: 'May')}" />
					
						<g:sortableColumn property="motaNhanCong" title="${message(code: 'nguyenCong.motaNhanCong.label', default: 'Mota Nhan Cong')}" />
					
						<g:sortableColumn property="sanluongTB" title="${message(code: 'nguyenCong.sanluongTB.label', default: 'Sanluong TB')}" />
					
					</tr>
				</thead>
				<tbody>
				<g:each in="${nguyenCongInstanceList}" status="i" var="nguyenCongInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td>
                            <g:link action="show" id="${nguyenCongInstance.id}">
                                ${nguyenCongInstance?.toSanXuat?.ten}
                            </g:link>
                        </td>
					
						<td>${fieldValue(bean: nguyenCongInstance, field: "ghiChu")}</td>
					
						<td>${fieldValue(bean: nguyenCongInstance, field: "khuanGa")}</td>
					
						<td>${fieldValue(bean: nguyenCongInstance, field: "may")}</td>
					
						<td>${fieldValue(bean: nguyenCongInstance, field: "motaNhanCong")}</td>
					
						<td>${fieldValue(bean: nguyenCongInstance, field: "sanluongTB")}</td>
					
					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${nguyenCongInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
